package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 存放用户的统计数据
对象 statistics_user_stats
 * 
 * @author uuo00n
 * @date 2024-08-15
 */
public class StatisticsUserStats extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 统计数据的唯一标识符
 */
    private Long statId;

    /** 关联的用户编号
 */
    @Excel(name = "关联的用户编号")
    private Long userId;

    /** 用户的活跃天数
 */
    @Excel(name = "用户的活跃天数")
    private Long activeDays;

    /** 用户的注册时间
 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用户的注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registrationDate;

    /** 用户的留存率
 */
    @Excel(name = "用户的留存率")
    private Long retentionRate;

    /** 统计数据的生成时间
 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "统计数据的生成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setStatId(Long statId) 
    {
        this.statId = statId;
    }

    public Long getStatId() 
    {
        return statId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setActiveDays(Long activeDays) 
    {
        this.activeDays = activeDays;
    }

    public Long getActiveDays() 
    {
        return activeDays;
    }
    public void setRegistrationDate(Date registrationDate) 
    {
        this.registrationDate = registrationDate;
    }

    public Date getRegistrationDate() 
    {
        return registrationDate;
    }
    public void setRetentionRate(Long retentionRate) 
    {
        this.retentionRate = retentionRate;
    }

    public Long getRetentionRate() 
    {
        return retentionRate;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("statId", getStatId())
            .append("userId", getUserId())
            .append("activeDays", getActiveDays())
            .append("registrationDate", getRegistrationDate())
            .append("retentionRate", getRetentionRate())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
